
# coding: utf-8

# In[10]:


i = input()
alpha,num,space,other = 0,0,0,0


# In[11]:


for s in i:
    if ord(s) == ord(" "):
        space = space+1
    elif ord("A") <ord(s) <ord("z"):
        alpha = alpha+1
    elif ord("0")< ord(s)<ord("9"):
        num = num+1
    else:
        other = other+1
print("input:{},alpht:{},num:{},space:{},other:{}".format(i,alpha,num,space,other))


# In[9]:




